/**
 * @Author: colpu
 * @Date: 2025-03-30 11:05:35
 * @LastEditors: colpu ycg520520@qq.com
 * @LastEditTime: 2025-03-30 11:05:36
 * @
 * @Copyright (c) 2025 by colpu, All Rights Reserved.
 */
export class ImportResolveError extends Error {
  filepath;
  paths;

  constructor(filepath, paths, error) {
    const message = `${error.message}, paths: ${JSON.stringify(paths)}`;
    super(message, { cause: error });
    this.name = this.constructor.name;
    this.filepath = filepath;
    this.paths = paths;
    Error.captureStackTrace(this, this.constructor);
  }
}
